package com.videoweb.service.impl;

import com.videoweb.entity.Tag;
import com.videoweb.mapper.TagMapper;
import com.videoweb.service.ITagService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lmr
 * @since 2025-05-17
 */
@Service
public class TagServiceImpl extends ServiceImpl<TagMapper, Tag> implements ITagService {


    @Autowired
    TagMapper tagMapper;

    @Override
    public List<Tag> getTagsByVideoId(Long videoId) {
        return tagMapper.getTagsByVideoId(videoId);
    }
}
